package com.fyspring.stepcounter.dao

import android.content.Context
import android.database.sqlite.SQLiteOpenHelper
import android.database.sqlite.SQLiteDatabase
import com.yunmai.steplibrary.db.DbConstans

class DBOpenHelper(mContext :Context) :SQLiteOpenHelper(mContext, DbConstans.DB_NAME, null,DbConstans.DB_VERSION) {
    //用于创建Banner表
    private val CREATE_STEP_TABLE = ("create table step ("
            + "_id INTEGER PRIMARY KEY AUTOINCREMENT, "
            + "curDate TEXT, "
            + "totalSteps TEXT)")


    override fun onCreate(db: SQLiteDatabase) {
        db.execSQL(CREATE_STEP_TABLE)
    }

    override fun onUpgrade(db: SQLiteDatabase, oldVersion: Int, newVersion: Int) {

    }
}